$(function () {
    $(".location-link").on("click", function () {
        var facilityId = $(this).prev("span").text();
        layer.open({
            type: 2,
            area: ['900px', '80%'],
            resize: false,
            title: '位置',
            shade: 0.6, //遮罩透明度
            maxmin: true, //允许全屏最小化
            anim: 1, //0-6的动画形式，-1不开启
            content: window.location.protocol + '//' + window.location.host + "/siotwx/2/location?facId=" + facilityId
        });
    });
});